Lines Matching refs:depth
37 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth);
39 int32_t encodeMatcherMask(int32_t mask[], int32_t depth);
89 Field(int32_t tag, int32_t pos[], int32_t depth) : mTag(tag) { in Field()
90 mField = getEncodedField(pos, depth, true); in Field()
106 inline void decorateLastPos(int32_t depth) { in decorateLastPos()
107 int32_t mask = kLastBitMask << 8 * (kMaxLogDepth - depth); in decorateLastPos()
119 inline int32_t getPath(int32_t depth) const { in getPath()
120 if (depth > 2 || depth < 0) return 0; in getPath()
124 return (field & (mask << 8 * (kMaxLogDepth - depth))); in getPath()
127 inline int32_t getPrefix(int32_t depth) const { in getPrefix()
128 if (depth == 0) return 0; in getPrefix()
129 return getPath(depth - 1); in getPrefix()
136 inline int32_t getRawPosAtDepth(int32_t depth) const { in getRawPosAtDepth()
138 int32_t shift = 8 * (kMaxLogDepth - depth); in getRawPosAtDepth()
144 inline int32_t getPosAtDepth(int32_t depth) const { in getPosAtDepth()
145 return getRawPosAtDepth(depth) & kClearLastBitDeco; in getPosAtDepth()
149 inline bool isLastPos(int32_t depth) const { in isLastPos()
151 int32_t mask = kLastBitMask << 8 * (kMaxLogDepth - depth); in isLastPos()
156 inline bool isAnyPosMatcher(int32_t depth) const { in isAnyPosMatcher()
157 return getDepth() >= depth && getRawPosAtDepth(depth) == 0; in isAnyPosMatcher()
160 inline bool isLastPosMatcher(int32_t depth) const { in isLastPosMatcher()
161 return getDepth() >= depth && getRawPosAtDepth(depth) == kLastBitMask; in isLastPosMatcher()
232 inline int32_t getRawMaskAtDepth(int32_t depth) const { in getRawMaskAtDepth()
234 int32_t shift = 8 * (kMaxLogDepth - depth); in getRawMaskAtDepth()