MCPcopy Create free account
hub / github.com/catboost/catboost / TDescriptor

Class TDescriptor

library/cpp/charset/iconv.h:41–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 class TDescriptor : NNonCopyable::TNonCopyable {
42 private:
43 void* Descriptor_;
44 const char* From_;
45 const char* To_;
46
47 public:
48 template <class TFrom, class TTo>
49 inline TDescriptor(TFrom from, TTo to)
50 : TDescriptor(CharsetName(from), CharsetName(to))
51 {
52 }
53
54 TDescriptor(const char* from, const char* to);
55
56 ~TDescriptor();
57
58 inline void* Get() const {
59 return Descriptor_;
60 }
61
62 inline bool Invalid() const {
63 return Descriptor_ == (void*)(-1);
64 }
65
66 inline const char* From() const noexcept {
67 return From_;
68 }
69
70 inline const char* To() const noexcept {
71 return To_;
72 }
73 };
74
75 template <class TFrom, class TTo>
76 inline bool CanConvert(TFrom from, TTo to) {

Callers 1

StoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected