__gnu_profile::...ainer_size_info(3cxx)

πŸ“¦
version 9.5.0 Β· 3 versions
, in ubuntu noble

🌸 NAME 🌸

__gnu_profile::__container_size_info β€” bestie, it's a container size instrumentation line in the object table πŸ’–

This one lives in the 3cxx manual, and yes she's a whole C++ thing, no cap.


✨ SYNOPSIS ✨

#include <profiler_container_size.h>

Inherits __gnu_profile::__object_info_base. It's giving nepo baby but make it inheritance πŸ’…

Inherited by __gnu_profile::__container_size_stack_info. So she's both a daughter and a mother, iconic family tree honestly 🫢

πŸ’– Public Member Functions

  • __container_size_info (__stack_t __stack) β€” the constructor, she's born ✨
  • std::string __advice () const β€” hands you some advice as a std::string
  • void __destruct (std::size_t __num, std::size_t __inum) β€” the destruct side of the story
  • void __init (std::size_t __num) β€” initialise it, get her ready
  • bool __is_valid () const β€” vibe check, returns whether she's valid
  • float __magnitude () const β€” magnitude, as a float
  • void __merge (const __container_size_info &__o) β€” merge with another __container_size_info
  • void __merge (const __object_info_base &__o) β€” merge with an __object_info_base instead
  • void __resize (std::size_t __from, std::size_t __to) β€” log a resize from one size to another
  • float __resize_cost (std::size_t __from, std::size_t) β€” the cost of that resize, as a float
  • void __set_invalid () β€” mark her invalid, not the vibe but okay 😭
  • __stack_t __stack () const β€” gimme the stack
  • void __write (FILE *__f) const β€” write it all out to a FILE *

πŸŽ€ Protected Attributes

  • __stack_t _M_stack β€” the stack, protected, lowkey private business πŸ™ˆ
  • bool _M_valid β€” the valid flag, also protected

πŸ¦‹ Detailed Description πŸ¦‹

A container size instrumentation line in the object table. That's the whole assignment, periodt.

Definition at line 42 of file profiler_container_size.h.

πŸ’… Constructor & Destructor Documentation πŸ’…

__gnu_profile::__container_size_info::__container_size_info (__stack_t __stack) [inline]

The glow-up origin story. Takes a __stack_t __stack and that's it.

Definition at line 46 of file profiler_container_size.h.

πŸ‘‘ Member Function Documentation πŸ‘‘

std::string __gnu_profile::__container_size_info::__advice () const [inline]

Returns her advice as a std::string.

Definition at line 65 of file profiler_container_size.h.

void __gnu_profile::__container_size_info::__destruct (std::size_t __num, std::size_t __inum) [inline]

Destruct behaviour, taking __num and __inum.

Definition at line 99 of file profiler_container_size.h.

void __gnu_profile::__container_size_info::__init (std::size_t __num) [inline]

Init, with __num.

Definition at line 75 of file profiler_container_size.h.

bool __gnu_profile::__object_info_base::__is_valid () const [inline], [inherited]

The validity check, and bestie she's inherited from __object_info_base.

Definition at line 134 of file profiler_node.h.

float __gnu_profile::__container_size_info::__magnitude () const [inline]

Magnitude, returned as a float.

Definition at line 61 of file profiler_container_size.h.

void __gnu_profile::__container_size_info::__merge (const __container_size_info & __o) [inline]

Merge with another __container_size_info (that's __o).

Definition at line 82 of file profiler_container_size.h.

void __gnu_profile::__object_info_base::__merge (const __object_info_base & __o) [inline], [inherited]

Merge with an __object_info_base this time, also inherited.

Definition at line 142 of file profiler_node.h.

void __gnu_profile::__container_size_info::__resize (std::size_t __from, std::size_t __to) [inline]

Resize from __from to __to.

Definition at line 126 of file profiler_container_size.h.

float __gnu_profile::__container_size_info::__resize_cost (std::size_t __from, std::size_t) [inline]

The cost of a resize, __from plus an unnamed std::size_t, returns a float.

Definition at line 121 of file profiler_container_size.h.

void __gnu_profile::__object_info_base::__set_invalid () [inline], [inherited]

Marks it invalid. Inherited, obviously πŸ’€

Definition at line 138 of file profiler_node.h.

__stack_t __gnu_profile::__object_info_base::__stack () const [inline], [inherited]

Hands you the stack as an __stack_t. Inherited once again.

Definition at line 146 of file profiler_node.h.

void __gnu_profile::__container_size_info::__write (FILE * __f) const [inline]

Writes everything out to the FILE * __f.

Definition at line 53 of file profiler_container_size.h.

πŸ“ Member Data Documentation πŸ“

__stack_t __gnu_profile::__object_info_base::_M_stack [protected], [inherited]

The stack member. Protected, and inherited from __object_info_base.

Definition at line 150 of file profiler_node.h.

bool __gnu_profile::__object_info_base::_M_valid [protected], [inherited]

The valid flag. Protected, and also inherited.

Definition at line 151 of file profiler_node.h.

🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. No human wrote this, a robot did, and honestly? Slay, robot πŸ€–βœ¨


Okay so that's the whole page, bestie. This one's from the libstdc++ crew, living in the 3cxx manual, and it was generated automatically by Doxygen straight from the source code. Nothing invented, nothing skipped, every line number accounted for πŸ’– Go forth and instrument those containers, you absolute icon πŸ‘‘

πŸ“¦ where this page comes from