<commit_before>/**
 * Class CCopasiObjectReference
 *
 * This class is the is used to make an existing object gobally accesible.
 *
 * Copyright <NAME> 2002
 */

#ifndef COPASI_CCopasiObjectReference
#define COPASI_CCopasiObjectReference

#include "CCopasiObject.h"

/** @dia:pos 64.092,27.0418 */
/** @dia:route CCopasiObject; v,60.054,22.7537,25.1206,81.8072,27.0418 */
template <class CType> class CCopasiObjectReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiObjectReference() {};

  public:
    CCopasiObjectReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiObjectReference(const CCopasiObjectReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiObjectReference() {}

    virtual void * getReference() {return &mReference;}
  };

/** @dia:pos 64.092,38.1129 */
/** @dia:route CCopasiObject; v,60.054,22.7537,36.0826,82.52,38.1129 */
template <class CType> class CCopasiVectorReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiVectorReference() {};

  public:
    CCopasiVectorReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiVectorReference(const CCopasiVectorReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiVectorReference() {}

    virtual CCopasiObject * getObject(const CCopasiObjectName & cn)
    {
      return new CCopasiObjectReference< CType::elementType >
      (mObjectName + cn,
       getObjectParent(),
       mReference[cn.getIndex()]);
    }

    virtual void * getReference() {return &mReference;}
  };

/** @dia:pos 64.092,50.0714 */
/** @dia:route CCopasiObject; v,60.054,22.7537,47.8736,82.52,50.0714 */
template <class CType> class CCopasiMatrixReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiMatrixReference() {};

  public:
    CCopasiMatrixReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiMatrixReference(const CCopasiMatrixReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiMatrixReference() {}

    virtual CCopasiObject * getObject(const CCopasiObjectName & cn)
    {
      return new CCopasiObjectReference< CType::elementType >
      (mObjectName + cn,
       getObjectParent(),
       mReference(cn.getIndex(),
                  cn.getIndex(1)));
    }

    virtual void * getReference() {return &mReference;}
  };
#endif // COPASI_CCopasiObjectReference<commit_msg>removed some warnings<commit_after>/**
 * Class CCopasiObjectReference
 *
 * This class is the is used to make an existing object gobally accesible.
 *
 * Copyright <NAME> 2002
 */

#ifndef COPASI_CCopasiObjectReference
#define COPASI_CCopasiObjectReference

#include "CCopasiObject.h"

/** @dia:pos 64.092,27.0418 */
/** @dia:route CCopasiObject; v,60.054,22.7537,25.1206,81.8072,27.0418 */
template <class CType> class CCopasiObjectReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiObjectReference() {};

  public:
    CCopasiObjectReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiObjectReference(const CCopasiObjectReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiObjectReference() {}

    virtual void * getReference() {return &mReference;}
  };

/** @dia:pos 64.092,38.1129 */
/** @dia:route CCopasiObject; v,60.054,22.7537,36.0826,82.52,38.1129 */
template <class CType> class CCopasiVectorReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiVectorReference() {};

  public:
    CCopasiVectorReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiVectorReference(const CCopasiVectorReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiVectorReference() {}

    virtual CCopasiObject * getObject(const CCopasiObjectName & cn)
    {
      return new CCopasiObjectReference< typename CType::elementType >
      (mObjectName + cn,
       getObjectParent(),
       mReference[cn.getIndex()]);
    }

    virtual void * getReference() {return &mReference;}
  };

/** @dia:pos 64.092,50.0714 */
/** @dia:route CCopasiObject; v,60.054,22.7537,47.8736,82.52,50.0714 */
template <class CType> class CCopasiMatrixReference: public CCopasiObject
  {
    typedef CType referenceType;

    //Attributes
  private:
    CType & mReference;

    //Operations
  private:
    CCopasiMatrixReference() {};

  public:
    CCopasiMatrixReference(const std::string & name,
                           const CCopasiContainer * pParent,
                           CType & reference):
        CCopasiObject(name, pParent, "Reference", CCopasiObject::Reference),
        mReference(reference)
    {}

    CCopasiMatrixReference(const CCopasiMatrixReference< CType > & src):
        CCopasiObject(src),
        mReference(src.mReference)
    {}

    virtual ~CCopasiMatrixReference() {}

    virtual CCopasiObject * getObject(const CCopasiObjectName & cn)
    {
      return new CCopasiObjectReference< typename CType::elementType >
      (mObjectName + cn,
       getObjectParent(),
       mReference(cn.getIndex(),
                  cn.getIndex(1)));
    }

    virtual void * getReference() {return &mReference;}
  };
#endif // COPASI_CCopasiObjectReference
{'fraction_non_alphanumeric': 0.10889929742388758, 'fraction_numerical': 0.035421545667447304, 'mean_word_length': 2.9068038879359634, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2256679', 'n_tokens_mistral': 2237, 'n_tokens_neox': 2049, 'n_words': 405}