Template Struct ResourceTemplate

Inheritance Relationships

Base Type

Struct Documentation

template<typename DataType>
struct backend::ResourceTemplate : public backend::ResourceTemplateBase

Public Types

typedef std::unique_ptr<ResourceTemplate> Ptr

Public Functions

inline ResourceTemplate(const ResourceType &_type, const std::string &_folder, const bool _is_external_folder, const DataType &_resource)
DataTypes getDataType()
inline const DataType &resource() const
inline DataType &resource()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
DataTypes getDataType()
template<>
void createUniqueResource(const cv::Mat &default_resource, const ResourceId &id, std::unique_ptr<cv::Mat> *unique_resource)
template<>
void createUniqueResource(const std::string &default_resource, const ResourceId &id, std::unique_ptr<std::string> *unique_resource)
template<>
void createUniqueResource(const resources::PointCloud &default_resource, const ResourceId &id, std::unique_ptr<resources::PointCloud> *unique_resource)
template<>
void createUniqueResource(const voxblox::TsdfMap &default_resource, const ResourceId &id, std::unique_ptr<voxblox::TsdfMap> *unique_resource)
template<>
void createUniqueResource(const voxblox::EsdfMap &default_resource, const ResourceId &id, std::unique_ptr<voxblox::EsdfMap> *unique_resource)
template<>
void createUniqueResource(const voxblox::OccupancyMap &default_resource, const ResourceId &id, std::unique_ptr<voxblox::OccupancyMap> *unique_resource)
template<>
void createUniqueResource(const resources::ObjectInstanceBoundingBoxes &default_resource, const ResourceId &id, std::unique_ptr<resources::ObjectInstanceBoundingBoxes> *unique_resource)

Public Members

std::unique_ptr<DataType> resource_ptr

Public Static Functions

static void createUniqueResource(const DataType &default_resource, const ResourceId &id, typename std::unique_ptr<DataType> *unique_resource)