Template Function gpa::playback::detail::AddInfoPtrToVector

Function Documentation

template<typename InfoType, typename DerivedType>
inline void gpa::playback::detail::AddInfoPtrToVector(InfoType const *pInfo, std::vector<DerivedType const*> &vector)

Adds a pointer to an info object of a given InfoType to a std::vector<> of a given DerivedType.

Note

If the given info object is null this function is a noop

Note

If the given info object doesn't convert to DerivedType this function is a noop

Parameters
  • <InfoType> -- The base info object type

  • <DerivedType> -- The derived info object type

  • pInfo -- The pointer to add to the given std::vector<>

  • vector -- The std::vector<> to add the given pointer to