Questions tagged [qualifiers]

A qualifier adds an extra "quality", such as specifying volatility or constness of a variable

They're similar to adjectives: "a fickle man", "a volatile int", "an incorruptible lady", "a const double". With or without a qualifier, the variable itself still occupies the same amount of memory, and each bit has the same interpretation or contribution to the state/value. Qualifiers just specify something about how it may be accessed or where it is stored

Credits goes to Tony_D @ What is the meaning of "qualifier"?

211 questions
0
votes
1 answer

SMSS: text qualifier in the Tasks > Data Import?

I am trying to import a file, source here and selections here (select all fields and select "Pilkkueroteltu (otsikollinen)" and then click Jatka to download), with two header rows, " as text qualifier, comma as a field separator and with UTF-8…
hhh
  • 50,788
  • 62
  • 179
  • 282
0
votes
1 answer

Override @Observes qualifiers in subclass

I've bean that observes events for some class. @Stateless public class MyBean { public void process(@Observes Node) { // some logic } } Now I want to create subclass, that will catch only Node events with…
Radzikowski
  • 2,377
  • 4
  • 27
  • 39
0
votes
2 answers

Do I have to supply all new resource when using resource qualifier for folder in Android?

Do I have to supply all new resource when using resource qualifier for folder in Android? I have (originally) folder: layout which contains say layout1.xml and layout2.xml. Then I added folder: layout-h529dp Because I want new version of…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
0
votes
1 answer

Make a API-dependent reference to a theme-style

API 21+: android:background="?android:attr/selectableItemBackgroundBorderless" API <21: android:background="?android:attr/selectableItemBackground" How is it possible? I know the solution that uses "?attr/API_dependent_theme_reference" like this.…
0
votes
1 answer

multiple @Qualifier EJB injection

i have 2 EJB implements same interface, i have some qualifier : @java.lang.annotation.Documented @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD,…
cyril
  • 872
  • 6
  • 29
0
votes
2 answers

Why does calling a function that accepts a (const char * const **) with a char *** raise a -Wcast-qual flag?

If we have void foo(const char * const ** bar); and we call it with char *** bar = malloc(...); such as foo((const char * const **) bar); It returns: error: to be safe all intermediate pointers in cast from ‘char ***’ to ‘const char * const**’ must…
Ray C
  • 547
  • 2
  • 7
  • 24
0
votes
1 answer

C++ Primer exercise 2.27 [5th ed.]

I am doing exercise 2.27 from C++ primer 5th edition and I am confused in this question: Exercise: Which of the following initializations are legal? Explain why. (c) const int i = -1, &r = 0; I came to conclusion that r is illegal because this will…
silverwolf
  • 31
  • 3
0
votes
1 answer

Custom qualifiers on interface doesn't work on injection

The Problem: Hello i'm having a problem on java EE , i have to use annotation like @Inject @Stateless etcetc, but i can't get a solution, after reading a lot of documentation and example etcetc it seems that what i 've code should work but definitly…
Koraxos
  • 418
  • 5
  • 13
0
votes
2 answers

How to sum data by in a category in Spotfire

What would the custom expression be to sum data by a category, for each site. Using the data below, I would like to Sum[X] for only values with category blue, for each site What I have so far is Sum([X]) OVER [Site] --> Where / how do I put in the…
NightLearner
  • 295
  • 1
  • 7
  • 21
0
votes
1 answer

When using map::erase() "error: passing 'const ***' as 'this' argument of '***' discards qualifiers [-fpermissive]" reported

I'm implementing the following method to delete an element from an associative table (map) with map::erase(): //Method in gestion.cpp void Gestion::EliminateObject(string nomobjetg) const{ auto it = objectname.find(nameobjectg); if (it ==…
Marco
  • 391
  • 4
  • 18
0
votes
2 answers

Proper support of volatile qualifier of member functions in STL

Improper support of volatile-qualified overloadings of member functions in STL prevents using of containers, smart pointers, etc in generic way. Say, I want to declare a wrapper class, that provides value semantics and allows incompleteness of…
Tomilov Anatoliy
  • 15,657
  • 10
  • 64
  • 169
0
votes
1 answer

guava eventbus with qualifier

I want to use the guava eventBus in a spring application. I am wandering if (and how) it is possible to use qualifiers for the events like I would do with CDI @Observes. Is there any documentation on this or maybe a 3rd party framework I am not…
Jan Galinski
  • 11,768
  • 8
  • 54
  • 77
0
votes
1 answer

WMI GetPropertyQualifierValue "Not found"

My question is really simple, but apparently nobody's experienced a similar error. I'm writing a program to check if a WMI Class's property is writeable, that is, if the "Write" qualifier is true for that property. My code looks like…
Chris J
  • 3,828
  • 1
  • 20
  • 17
0
votes
1 answer

CDI - Producers and Qualifiers not on the produced object

imagine having a producer for a SessionFactory (as example): @Produces public SessionFactory produceSessionFactory(){} No I have a second producer that produces some other object, lets say a DatabaseObject, and needs a reference to a…
JDC
  • 4,247
  • 5
  • 31
  • 74
0
votes
1 answer

strange zsh filtering behavior

Doing: print -l ./somedir/**/*.{png,jpg} gives expected listing of png and jpg files, and there are both types of them present, BUT print -l ./somedir/**/*.{png,jpg}(Lk+50) does NOT list my jpg files greater than 50k, saying no matches found…
branquito
  • 3,864
  • 5
  • 35
  • 60