nndeploy C++ API  0.2.0
nndeploy C++ API
Classes | Public Member Functions | Public Attributes | List of all members
nndeploy::dag::EdgeTypeInfo Class Reference

输入输出类型信息 More...

#include <base.h>

Classes

struct  TypeHolder
 
struct  TypeHolderBase
 

Public Member Functions

template<typename T >
bool checkType () const
 
template<typename T , typename... Args>
T * createType (Args &&... args)
 
 EdgeTypeInfo ()
 
 EdgeTypeInfo (const EdgeTypeInfo &other)
 
std::string getEdgeName () const
 
EdgeTypeFlag getType () const
 
std::string getTypeName () const
 
std::string getTypeNameWithNamespace () const
 
const std::type_info * getTypePtr () const
 
std::string getUniqueTypeName ()
 
template<typename T >
bool isType () const
 
bool operator!= (const EdgeTypeInfo &other) const
 
EdgeTypeInfooperator= (const EdgeTypeInfo &other)
 
bool operator== (const EdgeTypeInfo &other) const
 
void setEdgeName (const std::string &edge_name)
 
template<typename T >
void setType ()
 
void setTypeName (const std::string &type_name)
 
 ~EdgeTypeInfo ()=default
 

Public Attributes

std::string edge_name_
 
EdgeTypeFlag type_
 
std::shared_ptr< TypeHolderBasetype_holder_
 
std::string type_name_
 
const std::type_info * type_ptr_ {nullptr}
 

Detailed Description

输入输出类型信息

Note
用于描述输入输出类型信息

Definition at line 113 of file base.h.

Constructor & Destructor Documentation

◆ EdgeTypeInfo() [1/2]

nndeploy::dag::EdgeTypeInfo::EdgeTypeInfo ( )
inline

Definition at line 115 of file base.h.

◆ ~EdgeTypeInfo()

nndeploy::dag::EdgeTypeInfo::~EdgeTypeInfo ( )
default

◆ EdgeTypeInfo() [2/2]

nndeploy::dag::EdgeTypeInfo::EdgeTypeInfo ( const EdgeTypeInfo other)
inline

Definition at line 118 of file base.h.

Member Function Documentation

◆ checkType()

template<typename T >
bool nndeploy::dag::EdgeTypeInfo::checkType ( ) const
inline

Definition at line 213 of file base.h.

◆ createType()

template<typename T , typename... Args>
T* nndeploy::dag::EdgeTypeInfo::createType ( Args &&...  args)
inline

Definition at line 202 of file base.h.

◆ getEdgeName()

std::string nndeploy::dag::EdgeTypeInfo::getEdgeName ( ) const
inline

Definition at line 229 of file base.h.

◆ getType()

EdgeTypeFlag nndeploy::dag::EdgeTypeInfo::getType ( ) const
inline

Definition at line 172 of file base.h.

◆ getTypeName()

std::string nndeploy::dag::EdgeTypeInfo::getTypeName ( ) const
inline

Definition at line 178 of file base.h.

Here is the call graph for this function:

◆ getTypeNameWithNamespace()

std::string nndeploy::dag::EdgeTypeInfo::getTypeNameWithNamespace ( ) const
inline

Definition at line 179 of file base.h.

◆ getTypePtr()

const std::type_info* nndeploy::dag::EdgeTypeInfo::getTypePtr ( ) const
inline

Definition at line 194 of file base.h.

◆ getUniqueTypeName()

std::string nndeploy::dag::EdgeTypeInfo::getUniqueTypeName ( )
inline

Definition at line 181 of file base.h.

Here is the call graph for this function:

◆ isType()

template<typename T >
bool nndeploy::dag::EdgeTypeInfo::isType ( ) const
inline

Definition at line 197 of file base.h.

◆ operator!=()

bool nndeploy::dag::EdgeTypeInfo::operator!= ( const EdgeTypeInfo other) const
inline

Definition at line 142 of file base.h.

◆ operator=()

EdgeTypeInfo& nndeploy::dag::EdgeTypeInfo::operator= ( const EdgeTypeInfo other)
inline

Definition at line 126 of file base.h.

◆ operator==()

bool nndeploy::dag::EdgeTypeInfo::operator== ( const EdgeTypeInfo other) const
inline

Definition at line 137 of file base.h.

◆ setEdgeName()

void nndeploy::dag::EdgeTypeInfo::setEdgeName ( const std::string &  edge_name)
inline

Definition at line 228 of file base.h.

◆ setType()

template<typename T >
void nndeploy::dag::EdgeTypeInfo::setType ( )
inline

Definition at line 145 of file base.h.

◆ setTypeName()

void nndeploy::dag::EdgeTypeInfo::setTypeName ( const std::string &  type_name)
inline

Definition at line 174 of file base.h.

Member Data Documentation

◆ edge_name_

std::string nndeploy::dag::EdgeTypeInfo::edge_name_

Definition at line 247 of file base.h.

◆ type_

EdgeTypeFlag nndeploy::dag::EdgeTypeInfo::type_

Definition at line 243 of file base.h.

◆ type_holder_

std::shared_ptr<TypeHolderBase> nndeploy::dag::EdgeTypeInfo::type_holder_

Definition at line 246 of file base.h.

◆ type_name_

std::string nndeploy::dag::EdgeTypeInfo::type_name_

Definition at line 244 of file base.h.

◆ type_ptr_

const std::type_info* nndeploy::dag::EdgeTypeInfo::type_ptr_ {nullptr}

Definition at line 245 of file base.h.


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