本文整理汇总了C++中Series::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ Series::clear方法的具体用法?C++ Series::clear怎么用?C++ Series::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Series
的用法示例。
在下文中一共展示了Series::clear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RsslDataDictionary
DataDictionaryImpl::DataDictionaryImpl(const DataDictionaryImpl& other) :
_loadedFieldDictionary(false),
_loadedEnumTypeDef(false),
_pDictionaryEntryList(0),
_pEnumTypeTableList(0),
_ownRsslDataDictionary(true),
_pfieldNameToIdHash(0)
{
_errorText.length = MAX_ERROR_TEXT_SIZE;
_errorText.data = (char*)malloc(sizeof(char) * _errorText.length);
if ( !_errorText.data )
{
throwMeeException("Failed to allocate memory in DataDictionaryImpl::DataDictionaryImpl()");
}
if ( _ownRsslDataDictionary )
{
try
{
_pRsslDataDictionary = new RsslDataDictionary();
}
catch (std::bad_alloc)
{
throwMeeException("Failed to allocate memory in DataDictionaryImpl::DataDictionaryImpl()");
}
rsslClearDataDictionary(_pRsslDataDictionary);
}
if (!other._loadedEnumTypeDef && !other._loadedFieldDictionary)
{
return;
}
Series series;
if ( other._loadedFieldDictionary )
{
const_cast<DataDictionaryImpl&>(other).encodeFieldDictionary(series, DICTIONARY_VERBOSE);
StaticDecoder::setData(&series, 0);
decodeFieldDictionary(series, DICTIONARY_VERBOSE);
series.clear();
}
if ( other._loadedEnumTypeDef )
{
const_cast<DataDictionaryImpl&>(other).encodeEnumTypeDictionary(series, DICTIONARY_VERBOSE);
StaticDecoder::setData(&series, 0);
decodeEnumTypeDictionary(series, DICTIONARY_VERBOSE);
}
}