Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class ctti_type_index

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Boost.TypeIndex Header Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class ctti_type_index

boost::typeindex::ctti_type_index

Synopsis

// In header: <boost/type_index/ctti_type_index.hpp>

class ctti_type_index {
public:
  // types
  typedef unspecified type_info_t;
  // construct/copy/destruct
  explicit ctti_type_index(const char *) noexcept;
  ctti_type_index() noexcept;
  ctti_type_index(const type_info_t &) noexcept;
  // private member functions
  std::size_t get_raw_name_length() const noexcept;
  // public member functions
  const type_info_t & type_info() const noexcept;
  constexpr const char * raw_name() const noexcept;
  constexpr const char * name() const noexcept;
  std::string pretty_name() const;
  std::size_t hash_code() const noexcept;
  constexpr bool equal(const ctti_type_index &) const noexcept;
  constexpr bool before(const ctti_type_index &) const noexcept;
  // public static functions
  template<typename T> static constexpr ctti_type_index type_id() noexcept;
  template<typename T> 
    static constexpr ctti_type_index type_id_with_cvr() noexcept;
  template<typename T> 
    static ctti_type_index type_id_runtime(const T &) noexcept;
};

Description

Этот класс представляет собой обертку, которая делает вид, что работает точно так же, как stl_type_index, но не требует поддержки RTTI. описаниефункциисм.type_index_facade.

Этот класс совместимых компиляторов на C++14 имеет следующие функции, отмеченные как constexpr:

  • конструктор по умолчанию

  • конструкторы копий и цедентные операции

  • методы класса: имя(), до(конст) ctti_type_index& rhs), equal(const ctti_type_index& rhs)

  • статические методы type_id(), type_id_with_cvr()

  • операторы сравнения

Этот класс дает несколько более длинные имена типов, поэтому рассмотрите возможность использования stl_type_index в ситуациях, когда работает typeid().

ctti_type_index public construct/copy/destruct

  1. explicit ctti_type_index(const char data>, за исключением ;
  2. ctti_type_index()за исключением;
  3. ctti_type_index(const type_info_t & data>за исключением;

ctti_type_index private member functions

  1. std::ize_tget_raw_name_length()constне исключая;

ctti_type_index public member functions

  1. const type_info_t & type_info() const, за исключением ;
  2. constexpr charraw_name()constне исключая;
  3. constexpr charname()constне исключая;
  4. std::stringpretty_name()const;
  5. std::ize_thash_code()constне исключая;
  6. constexpr boolequal(const ctti_type_index& rhsconst;
  7. constexpr boolconst ctti_type_index& rhsconst;

ctti_type_index public static functions

  1. template<typename T> static constexpr ctti_type_indextype_id(;
  2. template<typename T> static constexpr ctti_type_indextype_id_with_cvrза исключением ;
  3. templatetypename T> static ctti_type_index type_id_runtime(const  & переменнаяза исключением ;

PrevUpHomeNext

Статья Class ctti_type_index раздела The Boost C++ Libraries BoostBook Documentation Subset Boost.TypeIndex Header Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Boost.TypeIndex Header Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 08:38:38/0.0063409805297852/0