7 #ifndef _DDL_CONTAINER_H_INCLUDED_
8 #define _DDL_CONTAINER_H_INCLUDED_
20 std::vector<T*> m_vecPointers;
23 #if defined(WIN32) && ((_MSC_VER < 1600) || defined(_DEBUG))
24 static T* s_pEmptyDummy;
49 void Insert(T* pElem,
int nPos = -1);
170 T*&
at(
unsigned int nPos);
177 T*
const&
at(
unsigned int nPos)
const;
183 template <
typename T>
Utility class to store DDL elements that can be cloned.
cDDLContainer(bool bSorted=true)
Constructor.
void CloneFrom(const cDDLContainer &oOther)
Clones all elements of a given container.
Utility class that stores DDL entities.
void Insert(T *pElem, int nPos=-1)
Insert.
iterator erase(iterator itPos)
removes an element from the container
const_iterator begin() const
Returns an iterator to the first element.
T *& operator[](unsigned int nPos)
random access operator.
bool empty() const
Returns whether the container is empty or not.
T *const & at(unsigned int nPos) const
random access method.
unsigned int size() const
Returns the size of the container.
iterator erase(iterator itPosFirst, iterator itPosLast)
removes a sequence of elements from the container
T *const * const_iterator
const iterator for DDL container
void CopyFromRef(cDDLContainerNoClone &oOther)
Copies the pointers from the other container.
bool IsSorted() const
Returns Whether or not the container is sorted by name or not.
T *& at(unsigned int nPos)
random access method.
void Delete()
Deletes all stored items (by calling delete on the pointers)
void clear()
clears the container (does not destroy the elements)
iterator end()
Returns an iterator to the element after the last element.
const_iterator end() const
Returns an iterator to the element after the last element.
const T * Find(const A_UTILS_NS::cString &strName) const
Finds an element by name.
iterator begin()
Returns an iterator to the first element.
cDDLContainerNoClone(bool bSorted=true)
Constructor.
iterator FindIt(const A_UTILS_NS::cString &strName)
Finds an element by name.
void Sort()
Sort the items by name.
T ** iterator
iterator for DDL container
T * Find(const A_UTILS_NS::cString &strName)
Finds an element by name.
Namespace for the mainpage_pkg_ddl.
cDDLContainerNoClone< IDDL > tDDLVec
Container type of basic DDL objects.
cDDLContainer< cDDLUnit > tDDLUnitVec
Container type of cDDLUnit objects.
cDDLContainer< cDDLBaseunit > tDDLBaseunitVec
Container type of cDDLBaseunit objects.
tDDLUnitVec::iterator tDDLUnitIt
Iterator type for tDDLUnitVec.
cDDLContainer< cDDLPrefix > tDDLPrefixVec
Container type of cDDLPrefix objects.
cDDLContainer< cDDLDataType > tDDLDTVec
Container type of cDDLDataType objects.
tDDLEnumVec::iterator tDDLEnumIt
Iterator type for tDDLConstVec.
std::map< A_UTILS_NS::cString, cDDLStream * > tDDLStreamMap
Associative container type for cDDLStream objects.
cDDLContainer< cDDLComplex > tDDLComplexVec
Container type of cDDLComplex objects.
tDDLDTVec::iterator tDDLDTIt
Iterator type for tDDLDTVec.
tDDLBaseunitVec::iterator tDDLBaseunitIt
Iterator type for tDDLBaseunitVec.
tDDLPrefixVec::iterator tDDLPrefixIt
Iterator type for tDDLPrefixVec.
tDDLStreamMap::iterator tDDLStreamMapIt
Iterator type for tDDLStreamMap.
tDDLComplexVec::iterator tDDLComplexIt
Iterator type for tDDLComplexVec.
tDDLStreamVec::iterator tDDLStreamIt
Iterator type for tDDLStreamVec.
cDDLContainer< cDDLStreamMetaType > tDDLStreamMetaTypeVec
Container type of cDDLStreamMetaType objects.
cDDLContainer< cDDLEnum > tDDLEnumVec
Container type of cDDLEnum objects.
cDDLContainer< cDDLStream > tDDLStreamVec
Container type of cDDLStream objects.