Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
apra::PinDef Struct Reference

#include <Metadata.h>

Collaboration diagram for apra::PinDef:
Collaboration graph

Public Member Functions

constexpr PinDef ()=default
 
constexpr size_t frameTypeCount () const
 
constexpr bool acceptsFrameType (std::string_view ft) const
 
constexpr size_t imageTypeCount () const
 
constexpr bool acceptsImageType (ImageType it) const
 
constexpr bool hasImageTypeRestrictions () const
 
constexpr PinDef withImageType (ImageType it) const
 
constexpr PinDef withImageTypes (ImageType it1) const
 
constexpr PinDef withImageTypes (ImageType it1, ImageType it2) const
 
constexpr PinDef withImageTypes (ImageType it1, ImageType it2, ImageType it3) const
 
constexpr PinDef withImageTypes (ImageType it1, ImageType it2, ImageType it3, ImageType it4) const
 

Static Public Member Functions

static constexpr PinDef create (std::string_view name_, std::string_view frame_type, bool required_=true, std::string_view description_="", MemType memType_=FrameMetadata::HOST)
 
static constexpr PinDef create (std::string_view name_, std::string_view ft1, std::string_view ft2, bool required_=true, std::string_view description_="", MemType memType_=FrameMetadata::HOST)
 
static constexpr PinDef create (std::string_view name_, std::string_view ft1, std::string_view ft2, std::string_view ft3, bool required_=true, std::string_view description_="", MemType memType_=FrameMetadata::HOST)
 
static constexpr PinDef create (std::string_view name_, std::string_view ft1, std::string_view ft2, std::string_view ft3, std::string_view ft4, bool required_=true, std::string_view description_="", MemType memType_=FrameMetadata::HOST)
 
static constexpr PinDef cudaInput (std::string_view name_, std::string_view frame_type, std::string_view description_="")
 
static constexpr PinDef cudaOutput (std::string_view name_, std::string_view frame_type, std::string_view description_="")
 

Public Attributes

std::string_view name
 
std::array< std::string_view, MAX_FRAME_TYPESframe_types {}
 
size_t frame_type_count = 0
 
bool required = true
 
std::string_view description = ""
 
MemType memType = FrameMetadata::HOST
 
std::array< ImageType, MAX_IMAGE_TYPESimage_types {}
 
size_t image_type_count = 0
 

Constructor & Destructor Documentation

◆ PinDef()

apra::PinDef::PinDef ( )
constexprdefault

Member Function Documentation

◆ acceptsFrameType()

bool apra::PinDef::acceptsFrameType ( std::string_view ft) const
inlineconstexpr

◆ acceptsImageType()

bool apra::PinDef::acceptsImageType ( ImageType it) const
inlineconstexpr

◆ create() [1/4]

static constexpr PinDef apra::PinDef::create ( std::string_view name_,
std::string_view frame_type,
bool required_ = true,
std::string_view description_ = "",
MemType memType_ = FrameMetadata::HOST )
inlinestaticconstexpr
Here is the caller graph for this function:

◆ create() [2/4]

static constexpr PinDef apra::PinDef::create ( std::string_view name_,
std::string_view ft1,
std::string_view ft2,
bool required_ = true,
std::string_view description_ = "",
MemType memType_ = FrameMetadata::HOST )
inlinestaticconstexpr

◆ create() [3/4]

static constexpr PinDef apra::PinDef::create ( std::string_view name_,
std::string_view ft1,
std::string_view ft2,
std::string_view ft3,
bool required_ = true,
std::string_view description_ = "",
MemType memType_ = FrameMetadata::HOST )
inlinestaticconstexpr

◆ create() [4/4]

static constexpr PinDef apra::PinDef::create ( std::string_view name_,
std::string_view ft1,
std::string_view ft2,
std::string_view ft3,
std::string_view ft4,
bool required_ = true,
std::string_view description_ = "",
MemType memType_ = FrameMetadata::HOST )
inlinestaticconstexpr

◆ cudaInput()

static constexpr PinDef apra::PinDef::cudaInput ( std::string_view name_,
std::string_view frame_type,
std::string_view description_ = "" )
inlinestaticconstexpr
Here is the call graph for this function:

◆ cudaOutput()

static constexpr PinDef apra::PinDef::cudaOutput ( std::string_view name_,
std::string_view frame_type,
std::string_view description_ = "" )
inlinestaticconstexpr
Here is the call graph for this function:

◆ frameTypeCount()

size_t apra::PinDef::frameTypeCount ( ) const
inlineconstexpr

◆ hasImageTypeRestrictions()

bool apra::PinDef::hasImageTypeRestrictions ( ) const
inlineconstexpr

◆ imageTypeCount()

size_t apra::PinDef::imageTypeCount ( ) const
inlineconstexpr

◆ withImageType()

PinDef apra::PinDef::withImageType ( ImageType it) const
inlineconstexpr
Here is the caller graph for this function:

◆ withImageTypes() [1/4]

PinDef apra::PinDef::withImageTypes ( ImageType it1) const
inlineconstexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ withImageTypes() [2/4]

PinDef apra::PinDef::withImageTypes ( ImageType it1,
ImageType it2 ) const
inlineconstexpr
Here is the call graph for this function:

◆ withImageTypes() [3/4]

PinDef apra::PinDef::withImageTypes ( ImageType it1,
ImageType it2,
ImageType it3 ) const
inlineconstexpr
Here is the call graph for this function:

◆ withImageTypes() [4/4]

PinDef apra::PinDef::withImageTypes ( ImageType it1,
ImageType it2,
ImageType it3,
ImageType it4 ) const
inlineconstexpr
Here is the call graph for this function:

Member Data Documentation

◆ description

std::string_view apra::PinDef::description = ""

◆ frame_type_count

size_t apra::PinDef::frame_type_count = 0

◆ frame_types

std::array<std::string_view, MAX_FRAME_TYPES> apra::PinDef::frame_types {}

◆ image_type_count

size_t apra::PinDef::image_type_count = 0

◆ image_types

std::array<ImageType, MAX_IMAGE_TYPES> apra::PinDef::image_types {}

◆ memType

MemType apra::PinDef::memType = FrameMetadata::HOST

◆ name

std::string_view apra::PinDef::name

◆ required

bool apra::PinDef::required = true

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