YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::os::Type Class Reference

#include <yarp/os/Type.h>

Classes

class  Private
 

Public Member Functions

 Type (const Type &rhs)
 Copy constructor.
 
 Type (Type &&rhs) noexcept
 Move constructor.
 
Typeoperator= (const Type &rhs)
 Copy assignment operator.
 
Typeoperator= (Type &&rhs) noexcept
 Move assignment operator.
 
std::string getName () const
 
std::string getNameOnWire () const
 
bool hasName () const
 
bool isValid () const
 
std::string toString () const
 
const SearchablereadProperties () const
 
PropertywriteProperties ()
 
TypeaddProperty (const char *key, const Value &val)
 

Static Public Member Functions

static Type byName (const char *name)
 
static Type byName (const char *name, const char *name_on_wire)
 
static Type byNameOnWire (const char *name_on_wire)
 
static Type anon ()
 

Detailed Description

Definition at line 19 of file Type.h.

Constructor & Destructor Documentation

◆ Type() [1/3]

Type::Type ( )

Constructor.

Definition at line 87 of file Type.cpp.

◆ Type() [2/3]

Type::Type ( const Type rhs)

Copy constructor.

Parameters
rhsthe Type to copy

Definition at line 92 of file Type.cpp.

◆ Type() [3/3]

Type::Type ( Type &&  rhs)
noexcept

Move constructor.

Parameters
rhsthe Type to be moved

Definition at line 97 of file Type.cpp.

◆ ~Type()

Type::~Type ( )
virtual

Destructor.

Definition at line 103 of file Type.cpp.

Member Function Documentation

◆ addProperty()

Type & Type::addProperty ( const char key,
const Value val 
)

Definition at line 134 of file Type.cpp.

◆ anon()

Type Type::anon ( )
static

Definition at line 194 of file Type.cpp.

◆ byName() [1/2]

Type Type::byName ( const char name)
static

Definition at line 171 of file Type.cpp.

◆ byName() [2/2]

Type Type::byName ( const char name,
const char name_on_wire 
)
static

Definition at line 178 of file Type.cpp.

◆ byNameOnWire()

Type Type::byNameOnWire ( const char name_on_wire)
static

Definition at line 186 of file Type.cpp.

◆ getName()

std::string Type::getName ( ) const

Definition at line 139 of file Type.cpp.

◆ getNameOnWire()

std::string Type::getNameOnWire ( ) const

Definition at line 144 of file Type.cpp.

◆ hasName()

bool Type::hasName ( ) const

Definition at line 149 of file Type.cpp.

◆ isValid()

bool Type::isValid ( ) const

Definition at line 154 of file Type.cpp.

◆ operator=() [1/2]

Type & Type::operator= ( const Type rhs)

Copy assignment operator.

Parameters
rhsthe Type to copy
Returns
this object

Definition at line 108 of file Type.cpp.

◆ operator=() [2/2]

Type & Type::operator= ( Type &&  rhs)
noexcept

Move assignment operator.

Parameters
rhsthe Type to be moved
Returns
this object

Definition at line 116 of file Type.cpp.

◆ readProperties()

const Searchable & Type::readProperties ( ) const

Definition at line 124 of file Type.cpp.

◆ toString()

std::string Type::toString ( ) const

Definition at line 159 of file Type.cpp.

◆ writeProperties()

Property & Type::writeProperties ( )

Definition at line 129 of file Type.cpp.


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