<commit_before>/*!
  \copyright (c) RDO-Team, 2011
  \file      rdo_res_type.inl
  \author      (<EMAIL>)
  \date      24.09.2011
  \brief        rdo::runtime
  \indent    4T
*/

// ----------------------------------------------------------------------- INCLUDES
// ----------------------------------------------------------------------- SYNOPSIS
#include "utils/smart_ptr/intrusive_ptr.h"
// --------------------------------------------------------------------------------

OPEN_RDO_RUNTIME_NAMESPACE

template <class T>
inline RDOResourceTypeBase<T>::RDOResourceTypeBase(ruint number)
	: RDOType           (t_pointer                               )
	, RDORuntimeObject  (                                        )
	, RDOTraceableObject(false, number, rdo::toString(number + 1))
{}

template <class T>
inline RDOResourceTypeBase<T>::~RDOResourceTypeBase()
{}

template <class T>
inline LPRDOResource RDOResourceTypeBase<T>::createRes(CREF(LPRDORuntime) pRuntime, ruint resID, CREF(std::vector<RDOValue>) paramsCalcs, rbool traceFlag, rbool permanentFlag)
{
	rdo::intrusive_ptr<RDOResourceTypeBase<T> > pThis(this);
	ASSERT(pThis);
	LPIResourceType pIResType = pThis.template interface_cast<IResourceType>();
	ASSERT(pIResType);

	rdo::intrusive_ptr<T> pResource = rdo::Factory<T>::create(pRuntime, paramsCalcs, pIResType, resID, this->getTraceID(), traceFlag, permanentFlag);
	ASSERT(pResource);
	pRuntime->insertNewResource(pResource);

	return pResource;
}
<commit_msg> - добавлен инклюд<commit_after>/*!
  \copyright (c) RDO-Team, 2011
  \file      rdo_res_type.inl
  \author      (<EMAIL>)
  \date      24.09.2011
  \brief        rdo::runtime
  \indent    4T
*/

// ----------------------------------------------------------------------- INCLUDES
// ----------------------------------------------------------------------- SYNOPSIS
#include "utils/smart_ptr/intrusive_ptr.h"
#include "simulator/runtime/rdo_runtime.h"
// --------------------------------------------------------------------------------

OPEN_RDO_RUNTIME_NAMESPACE

template <class T>
inline RDOResourceTypeBase<T>::RDOResourceTypeBase(ruint number)
	: RDOType           (t_pointer                               )
	, RDORuntimeObject  (                                        )
	, RDOTraceableObject(false, number, rdo::toString(number + 1))
{}

template <class T>
inline RDOResourceTypeBase<T>::~RDOResourceTypeBase()
{}

template <class T>
inline LPRDOResource RDOResourceTypeBase<T>::createRes(CREF(LPRDORuntime) pRuntime, ruint resID, CREF(std::vector<RDOValue>) paramsCalcs, rbool traceFlag, rbool permanentFlag)
{
	rdo::intrusive_ptr<RDOResourceTypeBase<T> > pThis(this);
	ASSERT(pThis);
	LPIResourceType pIResType = pThis.template interface_cast<IResourceType>();
	ASSERT(pIResType);

	rdo::intrusive_ptr<T> pResource = rdo::Factory<T>::create(pRuntime, paramsCalcs, pIResType, resID, this->getTraceID(), traceFlag, permanentFlag);
	ASSERT(pResource);
	pRuntime->insertNewResource(pResource);

	return pResource;
}

{'fraction_non_alphanumeric': 0.25317725752508363, 'fraction_numerical': 0.009364548494983277, 'mean_word_length': 2.1091476091476093, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3859803', 'n_tokens_mistral': 938, 'n_tokens_neox': 908, 'n_words': 152}