25 #ifndef NVNEURAL_STRINGLIST_H 
   26 #define NVNEURAL_STRINGLIST_H 
   44     explicit StringList(
const std::vector<std::string>& stringList)
 
   45         : m_stringList(stringList)
 
   52     explicit StringList(std::vector<std::string>&& stringList)
 
   53         : m_stringList(std::move(stringList))
 
   60         return m_stringList.size();
 
   66         if (stringIndex < m_stringList.size())
 
   68             return m_stringList[stringIndex].c_str();
 
   79         if (stringIndex < m_stringList.size())
 
   81             return m_stringList[stringIndex].size();
 
   90     std::vector<std::string> m_stringList;
 
Fundamental NvNeural data types are declared here.
 
Standard implementation for IRefObject-derived objects.
 
Smart pointer class for tracking IRefObject instances.
 
Standard implementation of IStringList that can represent a vector<string> type.
Definition: StringList.h:40
 
size_t stringCount() const noexcept
Definition: StringList.h:58
 
size_t getStringSizeByIndex(size_t stringIndex) const noexcept
Returns the Nth string's size in the collection.
Definition: StringList.h:77
 
const char * getStringByIndex(size_t stringIndex) const noexcept
Returns the Nth string in the collection.
Definition: StringList.h:64
 
StringList(std::vector< std::string > &&stringList)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: StringList.h:52
 
StringList(const std::vector< std::string > &stringList)
Creates a StringList from a const reference.
Definition: StringList.h:44
 
Parameterized base class implementing common IRefObject operations.
Definition: RefObject.h:336