Atlas 0.7.0
Networking protocol for the Worldforge system.
Atlas::Message::Element::DataType< C > Class Template Reference

Public Member Functions

 DataType (const C &c)
 
 DataType (C &&c)
 
 DataType (const DataType &)=delete
 
DataTypeoperator= (const C &c)
 
DataTypeoperator= (const C &&c)
 
DataTypeoperator= (const DataType &)=delete
 
bool operator== (const C &c) const
 
void ref ()
 
void unref ()
 
bool unique () const
 
DataTypemakeUnique ()
 
 operator C& ()
 
C && move ()
 

Detailed Description

template<class C>
class Atlas::Message::Element::DataType< C >

Definition at line 544 of file Element.h.

Constructor & Destructor Documentation

◆ DataType() [1/3]

template<class C >
Atlas::Message::Element::DataType< C >::DataType ( )
inline

Definition at line 547 of file Element.h.

◆ DataType() [2/3]

template<class C >
Atlas::Message::Element::DataType< C >::DataType ( const C &  c)
inlineexplicit

Definition at line 549 of file Element.h.

◆ DataType() [3/3]

template<class C >
Atlas::Message::Element::DataType< C >::DataType ( C &&  c)
inlineexplicit

Definition at line 550 of file Element.h.

Member Function Documentation

◆ makeUnique()

template<class C >
DataType * Atlas::Message::Element::DataType< C >::makeUnique ( )
inline

Definition at line 563 of file Element.h.

◆ move()

template<class C >
C && Atlas::Message::Element::DataType< C >::move ( )
inline

Moves the data out of the container.

This will destroy the existing data.

Returns

Definition at line 578 of file Element.h.

Referenced by Atlas::Message::Element::moveList(), Atlas::Message::Element::moveMap(), and Atlas::Message::Element::moveString().

◆ operator C&()

template<class C >
Atlas::Message::Element::DataType< C >::operator C& ( )
inline

Definition at line 571 of file Element.h.

◆ operator=() [1/2]

template<class C >
DataType & Atlas::Message::Element::DataType< C >::operator= ( const C &&  c)
inline

Definition at line 554 of file Element.h.

◆ operator=() [2/2]

template<class C >
DataType & Atlas::Message::Element::DataType< C >::operator= ( const C &  c)
inline

Definition at line 553 of file Element.h.

◆ operator==()

template<class C >
bool Atlas::Message::Element::DataType< C >::operator== ( const C &  c) const
inline

Definition at line 557 of file Element.h.

◆ ref()

template<class C >
void Atlas::Message::Element::DataType< C >::ref ( )
inline

Definition at line 559 of file Element.h.

◆ unique()

template<class C >
bool Atlas::Message::Element::DataType< C >::unique ( ) const
inline

Definition at line 562 of file Element.h.

◆ unref()

template<class C >
void Atlas::Message::Element::DataType< C >::unref ( )
inline

Definition at line 560 of file Element.h.


The documentation for this class was generated from the following file: